<?php
class Form {
    private $nameSpace = '';
    private $formName  = '';
    private $action = array();
    private $formSecure = true;
    private $elements = array();

    public function __construct($formName, $actionName=ACTION_NAME, $moduleName=MODULE_NAME) {
        $this->formName = $moduleName . '_' . $actionName . '_' . $formName;
        $this->nameSpace = 'Form';
    }
    
    public function setAction($actionName=ACTION_NAME, $moduleName=MODULE_NAME, $args=array()) {
        
    }

    public function addElement($type, $options) {
        
    }

    public function element($elemName) {
        
    }

    private function addStringElement($options) {
        $tagName = 'INPUT';
        $type = 'text';
    }

    private function addHiddenElement($options) {
        $tagName = "INPUT";
        $type = 'hidden';
    }
    
    private function addTextareaElement($options) {
        $tagName = 'TEXTAREA';
    }
    
    private function addSubmitElement($options) {
        $tagName = 'INPUT';
        $type = 'submit';
    }

    private function addResetElement($options) {
        $tagName = 'INPUT';
        $type = 'reset';
    }

    private function addButtonElement($options) {
        $tagName = 'INPUT';
        $type = 'button';
    }

    private function addSelectElement($options) {
        $tagName = 'SELECT';
    }

    private function addImageElement($options) {
        $tagName = 'INPUT';
        $type = 'image';
    }

    private function addCheckBoxElement($options) {
        $tagName = 'INPUT';
        $type = 'checkbox';
    }

    private function addRadioElement($options) {
        $tagName = 'INPUT';
        $type = 'radio';
    }
    
    public static  function formValid($formName) {
        
    }
};
?>